.ailt{
    width: 100vw;
    height: 100vh;
    background-color: #f2f2f2;
    display: flex;
    flex-direction: column;
    position: relative;
}
.ailt-top{
    width: 100%;
    height: 50px;
    background-color: #fff;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.ailt-top-left{
    width: 20px;
    height: 20px;
    margin-left: 15px;
}
.ailt-top-title{
    margin-left: 130px;
    font-size: 17px;
    font-weight: 600;
    color: #333;
}

// 聊天消息区域样式
.ailt-messages{
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    padding-bottom: 80px; /* 为底部输入框留出空间 */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ailt-welcome{
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 50px;
}

.ailt-message{
    display: flex;
    flex-direction: column;
    max-width: 80%;
    word-wrap: break-word;
}

.ailt-message-user{
    align-self: flex-end;
    
    .ailt-message-content{
        background-color: #007AFF;
        color: white;
        padding: 12px 16px;
        border-radius: 18px 18px 4px 18px;
        font-size: 16px;
        line-height: 1.4;
    }
    
    .ailt-message-time{
        text-align: right;
        font-size: 12px;
        color: #999;
        margin-top: 4px;
        padding-right: 8px;
    }
}

.ailt-message-bot{
    align-self: flex-start;
    
    .ailt-message-content{
        background-color: white;
        color: #333;
        padding: 12px 16px;
        border-radius: 18px 18px 18px 4px;
        font-size: 16px;
        line-height: 1.4;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    .ailt-message-time{
        text-align: left;
        font-size: 12px;
        color: #999;
        margin-top: 4px;
        padding-left: 8px;
    }
}

// 底部聊天输入框样式
.ailt-input-container{
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.ailt-microphone-icon{
    width: 40px;
    height: 40px;
}
.ailt-microphone-icon-img{
    width: 30px;
    height: 30px;
}

.ailt-input{
    flex: 1;
    height: 40px;
    background-color: #f5f5f5;
    border: none;
    border-radius: 20px;
    padding: 0 16px;
    font-size: 16px;
    color: #333;
    outline: none;
    transition: background-color 0.2s ease;
}

// 加载状态样式
.ailt-loading {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-style: italic;
}

.ailt-loading-dots {
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% {
        content: '';
    }
    40% {
        content: '.';
    }
    60% {
        content: '..';
    }
    80%, 100% {
        content: '...';
    }
}

// 表情包选择器样式
.emoji-picker {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    max-height: 300px;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.emoji-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.emoji-picker-header span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.emoji-picker-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.emoji-picker-close:hover {
    color: #333;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 5px;
    padding: 15px;
    max-height: 240px;
    overflow-y: auto;
    overflow-x: hidden;
}

.emoji-item {
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.emoji-item:hover {
    background-color: #f0f0f0;
}

.emoji-item:active {
    background-color: #e0e0e0;
    transform: scale(0.95);
}

// 表情包按钮样式
.emoji-button {
    background: none;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
    margin-left: 8px;
}

.emoji-button:hover {
    background-color: #f0f0f0;
}

.emoji-button:active {
    background-color: #e0e0e0;
    transform: scale(0.95);
}

